Local caching of api.ox calls

WIP