Attempt to make _filter_events_for_server more efficient
Attempt to make _filter_events_for_server more efficient

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse