Optimal stochastic resonance in a locally perturbed soft matter system