Caching all functions and NodeList as selector detection