General variability leads to specific adaptation toward optimal movement policies