improve get_mutualfriend performance