Revert "-O3 optimizations"

This reverts commit d16a73792ab8a5315e84a497f8979952c4b5fecd.