Take care of checksum and db when moving from cache to storage