RAZ-2390: Fixed issues with too much flushing of internal database cache
RAZ-2393: Trash: Files would not appear correctly on moving or on restoring