Calling the API can be expensive and time consuming. In many cases Excel deals with only calling it when necessary but there's also a long list of cases when it calls it unnecessarily (Volatile Actions: Actions that trigger calculation).
To mitigate this an LRU cache could be used (with appropriate concessions for non determinism, temperature, etc.) which makes use of the Storage API. It may also make sense to make use of the browser Compression Streams API.
Calling the API can be expensive and time consuming. In many cases Excel deals with only calling it when necessary but there's also a long list of cases when it calls it unnecessarily (Volatile Actions: Actions that trigger calculation).
To mitigate this an LRU cache could be used (with appropriate concessions for non determinism, temperature, etc.) which makes use of the Storage API. It may also make sense to make use of the browser Compression Streams API.