We study numerically and theoretically the optical transmission of nanostructured gold films embedded in dielectric claddings. We show how multiple transmission peaks appear as the claddings thickness increases. These transmission peaks come not only from surface plasmon polariton excitations but also from the excitation of Fabry-Perot modes sustained at the claddings, coupled through the metal, as long as a periodic pattern is milled in the metal film. We propose that this structure could be used as an ultracompact all-optical switch by surrounding the metal film with Kerr nonlinear dielectric layers.