Changed to a less aggressive memory allocation strategy.