Revert "Added O3 optimization for modules"

This reverts commit 9e4e791ae517aa69f5ebf77c9601a1e225fd7050.