What you need to do, is give prisoners full time jobs while they are in prison. Make them work for their meal each day. This teaches a person to work for their own living instead of committing crime. Plus work builds character, and you spend less time thinking about the bad things and more time concentrating on the future and the positive things.
Plus it will give them a job skill and teach them a trade they can use once they get out of the jail.