As said, my suggestion would be to disable this feature in interface messages.
See also T313462 where we made a similar performance-driven change to disabled the LinkRenderer CSS classes from interface messages in the skin footer because, unlike links in the editable page content, these are not expected to be red links, redirects, disambig. And if they were to become that, these pages are stable enough and watched/visible enough that it doesn't warrant continously recomputing this on every pageview. If a prominent page like Wikipedia:Copyright becomes a red link, redirect, or disambig page, that's going to surface on its own quicky enough. There's also a reasonable chance that the styles wouldn't apply there anyway, due to them being outside .mw-parser-output.

