Optimize belonging site checking