Improved event lookup and socket streaming