Block rotation otimization