Cover the battery, and plugs. Take heed to avoid electrical connectors, wires, electrical components, or chips. As long as you cover about 90% of the engine, the cams should be sprayable.
LOL. j/k
I have done it, just avoided the battery and plugs. Not sure how many flames I will get from saying that, but here's hoping that I get none..
Ray