Make MemBuffer non-static