For performance reasons we should store this MemBuffer in the thread context and only reset it in the packet path.