Issue #2140433 by pwolanin, chx, Owen Barton, dstol, Heine, Damien Tournoud: Port SA-CORE-2013-003 to Drupal 8.
Issue #1786490 by Berdir, amateescu, damiankloip, Wim Leers, dawehner: Add caching to the state system.
Revert "Issue #1786490 by Berdir, amateescu, damiankloip, dawehner: Add caching to the state system." This reverts commit 8ec847cc.