Won't civil law measures against wrongful imprisonment come into play here? The state should be paying heftily for putting people into imprisonment wrongfully.
How would you structure a compensation scheme that fairly compensates someone who was wrongly imprisoned before "iPhone" was a thing until now? Assume that his imprisonment has deprived him of the ability to learn critical financial management skills and that society hates unearned entitlements.