Because CertInformationToLog::getDynamicAttributes is declared in the header, it must be compiled in every file it is used (1000+). This function is expensive to compile because of all of the template instantiations in particular needed for libfmt & logging.
Move the definition of the function into src/mongo/util/net/ssl_manager.cpp.