Optical information storage in condensed matter with stochastic excitation