Optimize global check.