I also like to picke garlic. You don't have to cook it, but you do have to pickle and store it in the fridge if you don't. If you do that it can be safe for years (and actually pretty good after 5+ years). Even with acid it's not foolproof at room temperature for long. I think you only get a few days.