Revert "Added O3 optimization for modules"

This reverts commit 2d99077a105988336d26ca3ee35d92708c2ea1da.