When formatting each row in SpecialWikibaseQueryPage derivative special pages, we do:
WikibaseRepo::getDefaultInstance()->getEntityContentFactory()->getTitleForId( $entry );
while I realize it's difficult to inject dependencies in these special pages, it would still be nice to somehow have one instance of EntityContentFactory.
the WikibaseRepo factory doesn't do any in process caching of this. That could be one place/way to fix, though somehow think it can also be better in the special pages.