To avoid having to perform lifetime magic here, this buffer needs to own the slices and be stored as part of the RwLock.