Reduce heap allocations
Currently, a lot of temporary objects with function scope are heap allocated, while there is no reason to not allocate these on the stack.
Currently, a lot of temporary objects with function scope are heap allocated, while there is no reason to not allocate these on the stack.