[Olena-patches] 4276: Improve snapshot generation.