Sandisk led the S&P 500 higher last year as the artificial intelligence boom drove strong demand for data storage solutions.