diff --git a/docroot/includes/entity.inc b/docroot/includes/entity.inc
index 203ed87..30d35a9 100644
--- a/includes/entity.inc
+++ b/includes/entity.inc
@@ -192,6 +192,14 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
         ->fetchAllAssoc($this->idKey);
     }
 
+    // Add an early static cache so the entity will be available to filters.
+    if ($this->cache) {
+      // Add entities to the cache if we are not loading a revision.
+      if (!empty($queried_entities) && !$revision_id) {
+        $this->cacheSet($queried_entities);
+      }
+    }
+
     // Pass all entities loaded from the database through $this->attachLoad(),
     // which attaches fields (if supported by the entity type) and calls the
     // entity type specific load callback, for example hook_node_load().
