ECM parameters should be retained with keep alive or stored memory. I don't know what the time constant is, each OEM has a different strategy... I would think in the time it takes to replace a battery, or clamps, etc you would not lose anything critical. Maybe if you leave have the battery...