Caching if a sequence exists.