Yes, in general all ids are crate-local (because for the current crate, the crate id is always 0). So all data has to be converted from crate-local to global by the indexer. In particular here, ids might be reused in the next crate so we need to clear it out.