Added delayed sync to disk in cache