using cache for credential helper