Made the memory_pool block optimized