ImportBatch only creates deduplicated entries
Memoise ImportBatchRow#path and #type

We're now potentially calling these methods a lot, and they are relatively
expensive but are static.