Apparatus and method for improved precomputation to minimize power dissipation of integrated circuits