Revert "Add compiler optimizations"

This reverts commit 0a9e9f896eed9024e93dcde1a9902458ac6b0e6c.