Optimization for checkStructureAgainstController