code: func (cache *Cache) IterateCachedAccount(consumer func(*acm.Account) (stop bool)) (stopped bool, err error) {
  	// Try cache first for early exit
  	cache.RLock()
  	for _, info := range cache.accounts {
  		if consumer(info.account) {
  			cache.RUnlock()
  			return true, nil
  		}
  	}
  	cache.RUnlock()
  	return false, nil
  }
docs: // Iterates over all cached accounts first in cache and then in backend until consumer returns true for 'stop'