I say run the prisons the way the Navy runs its brigs: solitary confinement for all prisoners. I bet there's no rape problem at GitMo.That would be near impossible, and not cost effective. The inmates do all the work, such as food preparation, trash disposal, industries, like lens lab, book bindery, metal fab, pre cast concrete. It is expensive now, but that might bankrupt the states.
The states should spend as much as it takes, then. Rape is not a constitutional form of punishment. Austere forms of prison housing, such as the wire-fence cage/tin roof/concrete pad type at Gitmo, are perfectly acceptable in my opinion.