Diffie-Hellman’s key-exchange method runs this kind of exponentiation protocol, with all the operations conducted in this way ...
I wish I'd known these time-saving tweaks and tricks from the start.