Revert "Revert "Compiler Optimizations""

This reverts commit 94990105673ac585d6d08601526bee575dd3b5cc.