One other question, do you mean to place the resistor and cap only on the power pin (Vdd) or power and all inputs?But add a 10Ω resistor in series with the battery voltage along with a ≥100μF capacitor to ground near the XOR power pins, to minimize the effects of any voltage spikes.
Thanks.