Artificial intelligence has turned memory chips into one of the most valuable pieces of the semiconductor supply chain.