; and (4) in subsection (d) (as so redesignated), by striking necesary and inserting necessary . 3. General geothermal research and development programs Section 614 of the Energy Independence and Security Act of 2007 ( 42 U.S.C. 17193 ) is amended by adding at the end the following: (d) Oil and gas technology transfer initiative (1) In general The Secretary shall support an initiative among the Office of Fossil Energy, the Office of Energy Efficiency and Renewable Energy, and the private sector to modify, improve, and demonstrate the use in geothermal energy development of relevant advanced technologies and operation techniques used in the oil and gas sector. (2) Priorities In carrying out paragraph (1), the Secretary shall prioritize technologies with the greatest potential to significantly increase the use and lower the cost of geothermal energy in the United States, including the cost and speed of geothermal drilling. (e) Secondary use subprogram (1) In general The Secretary shall support within the Geothermal Technologies Office a program of research, development, and demonstration in the secondary use of geothermal energy other than for electricity, direct use, or geothermal exchange heat pumps. (2) Program areas The program under paragraph (1) shall include the following areas: (A) Minerals recovery, including lithium, silica, and rare earth elements. (B) Geothermal-powered desalination. (C) Industrial applications of geothermal energy. (D) The use of geothermal energy as a grid management resource or seasonal energy storage. (E) Other cost competitive secondary uses of geothermal energy, as determined by the Secretary. (F) Systems that utilize a combination of the techniques and uses described in subparagraphs (A) through (E) with geothermal heat or power. (3) Coproduction of geothermal energy and minerals production prize competition (A) In general The Secretary shall carry out a prize competition under which the Secretary shall award prizes to demonstrate the coproduction of critical minerals (as defined