How to improve the speed of "ipfs files write" when a folder has too many files, possibly by adding more than 1 file at a time?

I noticed that it takes around 50ms to add a file to a folder, which is fine, but when there starts to be too many files in a single folder, like 10000 or so, every once in a while adding a file can take up to a minute, and the time increases with the amount of files.

Are there any ways to improve this? Is there a way to add/update multiple files at once, and would this help with speed?