building ShareMemory save