Cache selectors to improve performance

C'mon Leon, wasn't this obvious?
Merge pull request #2 from kblanks/patch-1

Cache selectors to improve performance