Improved transaction performance by reducing memory allocations