High-performance spatial index for 3D stellar catalogs