We (society) should get them access to Khan Academy plus a ChatGPT style interface for interactive tutoring. Imagine giving each prisoner a tablet, possibly wrapped in the kids edition foam so they couldn't hit each other with it, and letting them work through basic education in every field they're interested in.
I expect people who worked on it would come out of a substantial sentence better educated than most.