Starting with Blender 2.91 it is possible to give custom optimization settings to specific layers and objects.
This allows much more control over the generated ild file.
Also see ILD Render Layers
For example when you want to use particles, you could define that dots are not deleted for a specific object.
Note: these settings in Blender are only visible if “Freestyle Export Edges” or “Grease Pencil Export Strokes” is enabled
The option for layer specific settings are in Properties - View Layer Properties:
Presets:
The option for object specific settings are in Properties - Object Properties: