Cache autodiscovery of the API

Uses WP CLI's built-in FileCache to cache locations.