Researchers are now using a toolkit to learn how to add impurities to the cavities to make them smoother—and more efficient.