Improve performance of `/sync` when filtering all rooms, message types, or senders.