Balance cache

Added a cache for balance checks, so that we don't flood the server with requests.