Please also replace this inner function with a single call to minimizeMemoryUsage(). We no longer need our custom implementation, given that we have such a nice and helpful method now.