Adding a SimpleMemoryPool to reduce memory usage