Improve memory usage.