the thing about cooking so many onions, though, is that you probably won't need that many at one time. so there's an essential second move whenever you're making caramelized onions: freeze them. stashed in an ice cube tray, caramelized onions will keep indefinitely in the freezer.