Try to reduce memory usage of MultipleCurves

Poor man's hack.
Switch to MultipleCurves impl.