Committing before storing data on duplicates