Optimized jail priorities