All prisoners should be in solitary confinement. There should be NO mingling. They should be restricted to their cells and have little access to anything else for the duration of their stay.
That would help. Of course, knowing that I would be butt-raped had certainly kept me from enaging in my more violent fantasies as an aggressive youth in the past.
Bookmarks