Cache state in metadata