Optimized-changing of the guards