To a certain point it still works as it should, even when colored, however these are signs that he's getting old.
To extend shelf life either store them in a fridge (inside a bag or another container) or optimally - freeze them, with the exception of Simons and Liebermann. They freeze, become solid and upon defrosting change color.