How can I save Irradiance Map and Lightcache and reuse them in command line way or code in SDK.

I am rendering scene using standalone vray. and I need to render a anime video. It’s very slow to render every image, so I want to “prerender” the lightcache and Irradiance Map to reduce the render time, Is this a good way?
I will be grateful if you can give me some adivce.

SettingsIrradianceMap::auto_save=1
SettingsIrradianceMap::auto_save_file=“filename”

Same for SettingsLightCache.

Yes, it is a good way if the changes between the frames are small enough that the pre-calculted Irradiance Map and Light Cache are actually usable and the render times decrease.