Reduce memory used by vm.