Dynamic instabilities and memory effects in vortex matter