Divide optimization