Add router caching to MessageMetadataHelper.