Smush CDN slowing the site

When I activate Smush CDN, my site runs extremely slow and pages return Error 524: a timeout occurred (cloudflare). Can you help me?