Trying to reduce memory allocations by using a pool allocator (no effect)