clean memory data status only when data has been persisted