Some optimizations to path binding.