6x speedup with another malloc avoidance