Are you certain that the battery is actually flat ?
The reason I ask is because you may have a fueling issue that gives the impression of a flat battery, essentially the injectors are still filling the cylinders with fuel when the engine is stalled creating an artificially high compression.