cache state