Optimizations during simplification.