Optimizing div ops