Moved eventMatchCache outside of the for loop
Merge pull request #14 from CaseyLeask/performance-tweaks

Moved eventMatchCache outside of the for loop