Updates the non-finalized state backup cache whenever the non-finalized state changes,
deleting any outdated backup files and writing any blocks that are in the non-finalized
state but missing in the backup cache.
Updates the non-finalized state backup cache by writing any blocks that are in the
non-finalized state but missing in the backup cache, and deleting any backup files
that are no longer present in the non-finalized state.