Add some potentially safe optimizations; disable gc