It might be fine to eat some kernel a week after it's been cooked or freeze it for later. Other kinds should only be kept for a few days.