SMS: Integrated optical memristors