I've googled a lot about it, but everyone suggests to skip them manually. It's not easy.
Maybe there is some add-on or script to make Blender render identical frames only once? And then I can make the needed frames longer using video editors. It could save many hours of rendering.