Share memory between ReplayBuffer and RecordingHelper