Garlic frozen in ice cube tray

I like using fresh garlic, but sometimes I run out.  I buy garlic in bulk, peel and mince it in a food processor, set in ice cube tray, pop them out when frozen and store in a plastic bag.