Preserving a cake

Does anyone know if there’s anything out there that you can put into cupcakes/cakes to make them last longer after baking? Thanks :-))))