I/V converter + analog switch
If really capacitances of the analog switch are the cause and if it is ok to switch to a non-inverting OpAmp configuration using discrete transistors as switches is an alternative:







simulate this circuit &ndash; Schematic created using CircuitLab

(limitations: signal must be positive; amplification > 1)