There is a cached value in 'bbCodeMedia', but AutoLink::factory is always calling $app->repository('XF:BbCodeMediaSite')->findActiveMediaSites()->fetch();
This affects XF\Job\PostEmbedMetadata since it can be touching multiple posts at a time.
This is intentional as the subsequent code expects an entity and the bbCodeMedia entry in the registry only includes a subset of the data. So no plans right now to change that.