We could get a large speedup for the twiss calculation by having a linear da map type which just stores staticarrays