Prepare persistence