Optimized conditions order