Memory through optogenetics