hmm do we want to have *all* state logs in cache? I would think we would only want/need 'pending' state logs in cache, and we then remove them from cache after they have been written to the db. If we leave state logs in the cache there's a very high chance of data inconsistency, as only state logs created since the cache server was last reset will be there.