Make it a holosuite. So that if they perform a prison break from their holding cell, they have no idea that they haven’t really escaped.
Also, give all prisoners an ankle bracelet that automatically transports them back to their holding cell if they do in fact successfully break out of the holding cell and walk out of the brig. The ankle bracelet vaporizes them if they jailbreak the lock. The last part may be inhumane for Starfleet, but would work for other species.
Also, give all prisoners an ankle bracelet that automatically transports them back to their holding cell if they do in fact successfully break out of the holding cell and walk out of the brig. The ankle bracelet vaporizes them if they jailbreak the lock. The last part may be inhumane for Starfleet, but would work for other species.