I haven't been to prison so I don't know how practical what I'm about to say actually is, but it seems like it's still possible to contribute to society while in prison. e.g. working in the library and helping someone with a shorter term get their GED, or even activism (like how Tookie Williams tried to end the cycle of gang violence that had put him on death row and got half a dozen Nobel Prize nominations before his execution)