Similar to gh-23204, ExchangeFilterFunctions.basicAuthentication(String, String) should also cache the encoded credentials.
At present, a new encoding takes place for any web request made through a WebClient configured with .filter(ExchangeFilterFunctions.basicAuthentication(user, pass)).