In most of these scenarios, you are still persisting data to stable storage. So, you would take the performance hit and load the data from the database.