caching through raft fsm