Oil rallied on optimism that consumption could gradually return as major producers continue to cut output to counter a global glut. West Texas Intermediate futures surged 22% Wednesday. U.S. gasoline stocks fell by 3.67 million barrels compared to an estimated build of 2.49 million, according to the U.S. Energy Information Administration. Weekly gasoline supplied, an indicator of demand, rose by 549,000 barrels a day, the most since May. “That was a nice surprise to the market,” Nick Holmes, portfolio manager at Tortoise, said regarding better-than-expected results for crude inventory and gasoline supply in the EIA report.

The discount on crude for June delivery relative to July, a structure known as contango, tightened to as little as $3.28 a barrel after blowing out to as wide as $7.69 Tuesday. The narrowing gap in the front-month spread suggests that the concern about storage may be easing, according to Michael Lynch, president of Strategic Energy & Economic Research Inc. “People are starting to think storage isn’t going to get quite so overstuffed after the EIA report,” Lynch said.