Revert "Trim memory size"

This reverts commit 5246b4edf4b819d6c5b1cf4b2a3cdad14353cbaf.