avoid duplicate transaction when files are reingested