Document dedupe process