Caching AI models in the browser