Using caching to cut down on api calls.