speedup by caching the Credential