system.tag.importTags with remote tag provider

when we use system.tag.importTags(filePath,basePath) with a basePath on a remote provider it take lots more times rather than with a local provider.

I'd like to run a gateway message handler to invoke this function locally, but I'm not sure the file can be sent in the payload.
For example with 10Mo json file, I can read the file to json, send in the payload, write json to a temorary file and the import locally.

Is there some memory limit for payload in gateway message handler ?

As a side note, destination gateway is Ignition Edge edition

JSON compresses well (mostly because it's incredibly inefficient as an encoding format) - you could gzip it locally and send the byte array. We don't expose any of the mechanisms the gateway network uses for large file transfers (such as backups) to script users, but it may be possible to create something with the SDK that exposes that functionality more easily.

that's would be usefull, especially if it could be imported in Ignition edge.
Gateway handler will be executed on Ignition Edge.