Make memory_alloc allocate one single block, still inefficient