Geometry proximity only for same spline

Hello everyone

I instanciated multiple curve-rings and wiggle the positions a bit for each one.

I need to make a geometry proximity to the points of the unwiggled version.

My problem is, that sometimes the wiggled points of a curve ring are closer to another original curve ring, not the same one.

Is there a way to limit the geometry proximity only to the curve of “the same index”.
Maybe with a “if curve_index of point is equal to the curve_index of the closest point”?

Greets, Mech