8 oz (1 block) cream cheese, softened
¼ cup unsalted butter, softened
2 cups powdered sugar
1 teaspoon vanilla extract
1-2 tablespoons milk (optional, for desired consistency)
Gradually add the dry ingredients to the wet ingredients, mixing until just combined. Be careful not to overmix.
Gently fold in the shredded carrots, walnuts, and raisins (if using). At this point you can do a long fermentation on the dough by placing a piece of plastic wrap over the large bowl and place it into the fridge overnight for 12-24 hours prior to baking. Alternatively you can proceed to baking after mixing the dough.
Divide the batter evenly between the prepared cake pans. Smooth the tops with a spatula.
Bake for 30-40 minutes, or until a toothpick inserted into the center comes out clean.
Remove the cakes from the oven and let them cool in the pans for 10 minutes before transferring them to a wire rack to cool completely.