I once kept a pasty I bought (in its sealed plastic bag) for a very long time, many, many months, at least half a year or more and when I eventually threw it away it still looked just the same as the day I bought it. Not a spot of mold.