You can bake the cake layers ahead of time. If it’s the night before frosting, wrap them in plastic wrap and leave them at room temperature.  If it’s longer than one night before frosting, wrap them in plastic wrap, place them in a freezer bag and freeze them. Then defrost them at room temperature before frosting. They don’t have to be fully defrosted before frosting, just before serving.