optimize log-exp table method for accelerating gf operations