That's exactly what I did with the olive oil. Basically submerge the cloves in a measuring cup and leave it roasting in the oven at 235 until the cloves float. Then split the mixture between the cups in place of an ice tray. That's a great idea with the basil, I'll have to try it.
You can also make your own garlic-infused olive oil like this. It’s included in this recipe for one of the best things I’ve ever made or eaten — and it’s always a huge hit for crowds. (The amounts are ballpark; a bit more or less of anything is fine. Tastes great hot or room temp.)
1 1/4 cups olive oil (save the EVOO for salads)
1 whole head garlic, tips chopped off and excess paper removed
2 pounds small pasta, e.g. fusilli or bowties
2 bunches fresh basil, torn to pieces
1 pound pancetta, finely diced and sauteed until half-crisp
1 pound feta cheese, crumbled
1/2 cup drained and chopped sun-dried tomatoes
2 cups cherry tomatoes, halved or quartered
Black pepper
Preheat oven to 300F. In small pot or ramekin, submerge garlic in olive oil. Cover with foil and bake about an hour, until garlic is soft and golden.
Cook pasta in boiling salted water until tender. Drain.
Pour garlic oil over pasta. Squish garlic cloves out of their paper and toss with pasta and all other remaining ingredients. Season with black pepper to taste. (Basil is torn so as to release the natural oils without bruising the leaves the way chopping does.)
I don’t eat pork anymore so haven’t had this in years and it makes me sad. Eat a bunch for me, pls.