CHEYENNE, Wyo. (AP) — Booming oil and gas revenue has put Wyoming back among states with big budget surpluses but Republican Gov. Mark Gordon cautioned lawmakers Wednesday to save, not splurge, out of concern that tough times will eventually return.

“As a Wyoming rancher, I know the value of a good hay year. Because they do not always come around, it is important that we make hay when the conditions are right,” Gordon told a joint session of the Wyoming Legislature in his annual state of the state speech.

Gordon often sprinkles his speeches with cowboy references. When Wyoming a year ago was still clawing back from a deficit that threatened to top $1 billion, he compared the state’s struggles with low oil prices and the COVID-19 pandemic to a hard cattle drive.

Now, Wyoming’s looking at a surplus approaching $1 billion, thanks to higher energy prices.

While Gordon cautioned against big spending, he’s asking legislators who kicked off a two-month session last Tuesday to set aside half of Wyoming’s surplus in state savings accounts. Wyoming has a two-year budget; he made the suggestion in a supplemental budget released in November.

But he also outlined a few spending priorities in his state of the state speech. They include more raises for state employees including snowplow drivers, troopers, nurses and social workers; maintaining funding for the state economic development agency, the Wyoming Business Council; and storing water amid pressure to send more down the Colorado River drainage.

Even if Gordon wanted, the state’s overwhelmingly Republican statehouse would be unlikely to bulk up a budget he described as the leanest in a decade, with an eye toward the state’s boom-and-bust economy eventually sliding back to bust.

“And leaner times appear likely. Supply chains, inflation, tight labor markets and other economic uncertainties may conspire against us,” Gordon said. “The actions we take today have meaning.”