If you add a capacitor, you are making an LC filter which may strongly affect your waveform. When you want a nice rising edge of current, you might get a sinusoidal pulse followed by ringing. I think the capacitor idea might be doable but it would require a ton of electrical engineering.
Grant