optimize size of compiled modules