In this recipe, using corn syrup is key to prevent your caramel from crystallizing and becoming grainy. If you use this, you shouldn't have any issues with a grainy frosting.