Shares of both SanDisk and Micron are rallying as investors cheer on artificial intelligence (AI) memory and storage.