fix purge files not on memory, to not receive a 'md5 colision' message
split memory diff and database store tasks to reduce the number of lock on cache memory