Make NetworkCache::traverse faster