diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 03eecbbbb60cb90347a0148267b1e3931f50fad9..02cefdff261502f2fc55705fcae829eb562906c3 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -284,9 +284,7 @@ class StateStore(SQLBaseStore):
             desc="_get_state_group_for_events",
         )
 
-        defer.returnValue({
-            intern(row["event_id"].encode('ascii')): row["state_group"] for row in rows
-        })
+        defer.returnValue({row["event_id"]: row["state_group"] for row in rows})
 
     def _get_some_state_from_cache(self, group, types):
         """Checks if group is in cache. See `_get_state_for_groups`