Separate memory and allocator