Why use prisons?
As I stated a long time ago in my high school, and as a result of it was considered ... crazy by my religion teacher:
Give all the prisoners electronic 'anklets' and 'wristbands' able to release enough electrical energy to knock someone unconscious. Then 'turn' them into slaves = make them work for the state, in people's home, as construction workers ... anything you can imagine.
Make them unable to leave a certain area, if they do, they'll be knocked unconscious.
Make the 'anklets' and wristbands activateable by voice commands incase they work in someone's home.
Make them wear the anklets and wristbands at every arm/leg ... no cutting of legs/arms allowed
Make the 'anklets' and wristbands able to detect blood pressure or any other indicator of anger, and the ability to temporarily paralyse their wearer when
their 'anger' level reaches a certain amount.
Gz, youve just gained free workers for your community that live semi-normal lives, and dont sit on their ass all day devouring taxes.