0012106: improve import performance for duplicates