Once cooked, the beans can be stored in a container in their cooking liquid and either refrigerated for up to a week or frozen for several months. (Discard the garlic cloves, bay leaves, or other seasonings.) If you are freezing the beans, add 1 teaspoon vinegar to the liquid to keep them from getting mushy.