programmatically bulk smush from my plugin?

Is there a way to programmatically bulk smush a site from php code? I'm sifting through your JS and PHP code in Smush, and I see where it's calling the wp_smushit_bulk action, but it seems like it's going through and submitting one ajax request at a time for each attachment. I'm guessing there must be a way to efficiently call one of your functions to bulk smush everything on a site. I'm running a multi-site network, but I can figure out how to iterate through the sites if you could point me in right direction for bulk smushing programmatically.

As always, I appreciate your support.
Best,
Dave