Only call lookup if api key is set
Add cache management