3-dimensional array (sort of) in Geometry Nodes?

curve hair with interpolated children.blend (4.5 MB)
Got it done through Sample Nearest, and giving the layers offset on X axis. Though it posed another question: Sample Nearest doesn’t interpolate anything unless the source mesh is subdivided. Any way to avoid it? Since subdividing multiple copies of the mesh isn’t exactly performant