Use Smush only for JPGs

Would it be possible to optimize only JPGS, not PNGs? It’s very important, because the PNGs need to have perfect quality and we have 4000 Pictures.