Logarithmic Iteration

Q: If mod-expt were further converted to logarithmic iteration, how much memory would be required?