Garbage collection can be faster than stack allocation