use a cache so that the API registry is really fast and immediate
fix build issue