Beyond the defaults command mentioned, do note that you can multiple select images in the Resources Library and turn them all off.
Out of curiosity, is this something you'd like at the document level (some documents you do want to have optimize turned on) or at the application level where under no circumstance do you want it?
As I create banner ads the exported product have to meet required data file sizes. For example 150 kB. I have to be very exact when compressing all resources. For this I use Pngyu, Svgomg, Imageoptim, etc.
I always turn off "Automatically optimize when exporting". For me it would be best to disable this in the application settings.