Crystal conditioning for high-energy physics detectors