Any reason not to just add caching around a call to fedora.client.AccountSystem().gravatar_url(username, lookup_email=False)?