Law does not exist outside of interpretation. So I'm not very sure how a storage device would help. For starters, in western (private) law, as long as you don't damage anyone (including the state) you're not doing anything illegal. Even if what you're doing has a law against it. Law only exists between parties that actually interact. Your neighbors do not get to complain to the court that you, say, offered an illegal contract to a tenant, or smoked in a room you agreed in writing not to smoke in. All these principles make law very hard to apply in practice.
You should read some "cases". That's what lawyers call law interpretation documents or legal decisions. The idea is that you get, in a text, all the elements needed to come to a correct legal conclusion, then the task is to find that correct legal conclusion. Simple cases have exactly what you need, more complex ones have a lot of details that are either irrelevant, or worse, need to be weighed against others. For instance, in contract law, the legal decision should always be minimal. An illegal contract will be minimally modified to become legal, not destroyed, for instance (which is why you should never sign a contract that you know is illegal, unless you know exact precedents, surprises will ensue). Good luck predicting what such changes will be, if brought before a court.
In any practical situation, you're not going to have all the facts, and the number of irrelevant facts is going to outnumber relevant facts by a dozen orders of magnitude.