Western Digital Corp.  (WDC)  jumped higher Friday, closing higher by 4.13% at $106.45. Shares also hit a new 52-week high in the session.

So why's the stock rallying? Baird analyst Tristan Gerra upgraded the stock to outperform from neutral and raised his price target to $135 from $93. This was a "very large price target" increase, TheStreet's Jim Cramer said on CNBC's "Stop Trading" segment.

Western Digital makes flash storage and hard drives, Cramer said. He told viewers that when he recently spoke with HP Inc.  (HPQ) CEO Dion Weisler, he wanted to hear an update on flash prices, or NAND.

Weisler said that DRAM prices remain elevated, something that continues to benefit Micron Technology, Inc. (MU) . However, he wouldn't commit to saying that NAND prices will significantly weaken and that bodes well for Western Digital.

Like Weisler, Gerra's observations show a significant increase in DRAM prices, but the reduction in flash pricing was weaker than expectations. His $135 price target implies more than 27% upside to current levels. 

"Flash prices are still elevated," said Cramer, who also manages the Action Alerts PLUS charitable trust portfolio. As a result, the stock "could easily trade" to the analyst's price target, he concluded.

More from Stocks

Trump, Microsoft, General Electric and Chick-fil-A - 5 Things You Must Know

Trump, Microsoft, General Electric and Chick-fil-A - 5 Things You Must Know

Stocks Weaken as Trump's Fed Rate Comments Open New Front in Global Trade War

Stocks Weaken as Trump's Fed Rate Comments Open New Front in Global Trade War

Nucor Shares Retreat Despite Nearly Doubling Q2 Earnings

Nucor Shares Retreat Despite Nearly Doubling Q2 Earnings

Microsoft Climbs After-Hours on Earnings Beat; Guidance to Be Announced on Call

Microsoft Climbs After-Hours on Earnings Beat; Guidance to Be Announced on Call

Dow Falls, Breaking 5-Day Winning Streak on Beige Book Trade-War Worries

Dow Falls, Breaking 5-Day Winning Streak on Beige Book Trade-War Worries