Effect of hydration on thermostability