Optimizing researching of events

It causes some overhead on large amount of data. I propose these changes to improve performance:
- class-level cache for events names;
- replaced unnecessary call of magick function by concrete method call;