Given a stream of data representing user device events, design an efficient data structure to track active sessions at PayJoy.