Adding some basic support for APC caching of API calls