Optimize `%`, `C` and `D`