Storing KS state constants as constants in the state