reduce the time that the files hash is locked