The big issue with that plan is when do you levy the costs, and how do you expect to get paid? Once they're out, very few former inmates are going to care about paying back the state. If you put a lien against their inmate account for the costs prior to release, it will be one of many liens on their inmate account being paid off with their prison wages (which is pennies per hour - the top earners make somewhere around 15-20 cents per hour) or shifting the costs onto their families, if they even have family support.
Either way, the money recouped at best would be insignificant, and at worse the debt would be counterproductive. Saddling people with a mound of extra debt upon release from prison (over and above any outstanding fines, surcharges and restitution) doesn't help them in the ultimate goal of leading a law abiding life.