Replace unnecessary exception handling during duplicate key check with an INSERT IGNORE statement.