Trying to optimize nested selectors