There is an optical lab a few miles from my house and it has been built into a cave at the base of a rock cliff at the back of a disused quarry, presumably to reduce these problems with flexing buildings and temperature. It is literally behind a steel doorway set into the cliff.