Thread:Extension talk:Scribunto/Equivalent of mw.loadData in the API

Can such a function be added? It would be useful for accessing data stored in modules from JavaScript. Doing this by template expansion of a serialising module seems to hit the memory limit quickly for large data, like with wikt:Module:languages. Some cache control options would be good to have available there.