Smushing old images - WP Sumsh IT Pro

We are trying to smush all the images we have in our wordpress site from a previous system, the amount range from 20,000 up to 110,000 images depending on the site in our mutilsite. What is the best way to do this as we have tried running the bulk program and it really bogs down our sites and db servers in the process