Small memory management optimizations