Phalcon\Events\manager optimizations