A scheme of an optical switch using a matrix of reprogrammable holograms is discussed. The light from each input channel is deflected to an output channel with a separate microhologram. The microholograms are recorded and overrecorded with two acousto-optical deflectors on a bacteriorhodopsin photo medium. The experiments have been carried out on a prototype with 20 X 20 channels. As shown, the capacity of such a switch can be increased up to 104 X 104.