stateToCacheData

abstract fun stateToCacheData(state: S): D