Chip-Scale Controlled Storage All-Optical Memory