How can I compress imported animations that didn't come from FBX?

I have a load of animations that I have imported into Unity: I wrote a simple importer that parsed our old animation format and generated the appropriate animation curves and clips in the Unity Editor. That all works but they do not show up as compressed and I cannot find anything in the Editor apis that would compress an AnimationCurve or AnimationClip.
How should I compress animations imported from other than FBX?

What do you mean “they do not show up compressed”? Your generated curves will have as much keys as you created.