Adaptation to high temperatures through macromolecular dynamics