so then my next question is how often do they do a cell shakedown? after a escape/riot or just randomly.
They have days where they will come and search a whole unit, all the cells. That does happen, but you can go for a couple of months without that happening. The issue with those searches, it is all the members in the prison that normally come around to search. Some of them are so lazy, they will even ask you to just quickly help them throw some stuff on the floor, so that it looks like they searched the cell. Then they will just sit on your bed while you stand outside and keep a lookout for when an officer comes around so they can pretend to be working.
The other times where you get searched is if your name is on a list, some informant has given your name and it gets added on a list, then they come with a selected few members, the more trusted group, and they come at all hours, not only early in the morning after the members on duty parade, but even during the night.
Then there is the end of year special operations that always gets showed on the news etc, those are conducted by the EST, and happens only at the end of the year, again also not all prisons and not all units inside a prison. Those are really more for show.