Although he was going to leave Clinton 's cabinet after Clinton 's first term , PeÃ a also served as Secretary of Energy for one year , from 1997 to 1998 . Although he had intended to leave Clinton 's cabinet after a single term , PeÃ a also served as Secretary of Energy for one year , from 1997 to 1998 .