We are witnessing an extraordinary transfer of cash from the providers of AI—and, perhaps one day, AI users—to memory-chip makers.