The memory-chip maker has reaped the benefits of the artificial-intelligence boom in its recent quarters.