I'm trying to think if there's anything to optimize if I know the event name before I know the payload