Actus reus and mens rea are both necessary in order for there to be a crime. In order to commit a crime, you need to do the criminal act and have the intention or knowledge of the criminal act. And you have to do it willfully, which means you can't be forced to do so under duress.
If someone throws a bag full of contraband into your house you're not guilty of possession. It can sit there for an arbitrary period of time without making you guilty of anything as long as you don't know what it is.
If, against your will, someone handcuffs a locked briefcase that you know contains contraband to your wrist, you cannot be guilty of possession of it even though you're in a real sense in possession of it. It can remain there for an unlimited amount of time, and you are not guilty of anything merely because you are unable to remove it.
Immutable data structures pose an interesting problem. Normally we can say that someone knew, or ought of have known something was there. If someone handcuffed a briefcase to you, it's expected that you would freak out and do whatever you could to detach and dispossess it. We haven't had to deal with situations like someone being forcibly tattooed with what they know to be child pornography. If that happened, would the person so marked be guilty of possession if they didn't burn or cut it off?
New technology definitely makes those assumptions highly questionable. Is Google guilty of possession and redistribution of illegal material because it indexed and cached it? It is not. Distributed situations make the issue even more acute. Your computer might need to download, process, and redistribute to others some representation of child pornography, or copyrighted material you have no license to distribute, stolen credit card numbers, classified material, or some other prohibited material. You might even be aware that it is there. But if it is necessary that your software take those actions with that data, that you have no choice, in order to send to confirm receipt of funds, then is it justified or lawful to make it a crime for you to do so?