Memory is initialized only once per linear interpolation in arbitrary dimensions.