Speed up scope checking