Here's the best tip you'll ever get if you get sentenced to any term in jail/pen. When they put you through the evaluation routine, be a perfect citizen and exhibit as much remorse, willingness to rehabilitate, and general passiveness as you possibly can. This is where they make the determinations between security levels (at least in Kansas).
So, you go in there and ask like a badass, and they'll stick your ass in a maximum security where you'll be raped much more frequently. In contrast, act peaceful and you'll stand a much, much better chance of getting the minimum security assignment.