Cost optimization through cook-freeze systems