The sparking when linking up is the capacitators charging.

The way to avoid that is to use a "precharge" link/lead , in short, you "precharge" the capacitators trough a resistor limiting the power that will flow before you put in the main link.