Prestress and deformation control in flexible structures