Secant varieties of curves, Ulrich bundles and the arithmetic writhe