i dont know if someone else wrote here simmilar issue, but im daily solving this in production. Imagine huge scene, with elements, which have thousands of points. After adding more and more animation and other layers, its always starting to lag as hell. So solution can be to just make from vector PNG file.
How i imagine it?
- select layer/folder in layer menu
- click script
- script will make new file with selected layer/ group name
- will copy there item and save it (if in future customer or yourself will need to change something)
- then render PNG
- insert it inside of original file instead of vector layer/group (vector layer will be deleted because of optimalization of file)
(best would be if the script can run in background, so you wont jump into new file etc., just png appear in layer menu.. if possible

If someone know about any solutions or maybe already made script will be really glad

Cheers