Optimized get nearest contacts