I have experienced the ESA nut coming loose in use. I am also aware that using any form of impact driver in the nut WILL apply a twisting moment the the mainshaft/flywheel interference fit and there is a risk, all be it small, that the mainshaft may turn in the flywheel - not something any one would want.
So some form of chain whip on the teeth of the sprocket along with a solid socket that has had its face squared off to give maximum contact/bite with the nut and a long breaker bar is in my opinion the safest way of removing or replacing the ESA nut.
As to preventing it from loosening off in use, I drilled a series of small holes around the periphery of PD5 which is keyed onto the mainshaft, so should NOT move with the ESA, and modified the top hat to take lock wire as shown in the photo. No need for any form of thread locker. So far 30,000 miles without any subsequent issues.
Martyn