Elasticity sampling links thermodynamics to metabolic control