I should have noticed this the first time, but I'm curious about the rationale of this change. If the point here is optimization, the previous stack allocation will be faster than this heap allocation.