Small memory optimization.