Added a new field `exit_cache` to the BeaconState, which caches the number of validators exiting at each epoch.