The interplay of the rate of water removal in the dehydration of trehalose