Optimized friend searching