def lookup(external, provider, as_of):
        if provider in ChargeMapCache.cache:
            if external in ChargeMapCache.cache[provider]:
                if as_of in ChargeMapCache.cache[provider][external]:
                    return ChargeMapCache.cache[provider][external][as_of]