REST API Slow Performance Creating Cabinets

I’m currently running a script that connects to the REST mayan service and creates new cabinets. The script works but creating a cabinet is extremely slow. It takes 10-20 seconds to return that it has created 1 folder, and a loop runs to create more, each time it takes this long. Is there a way to speed this up?