Woody plants optimise stomatal behaviour relative to hydraulic risk.