Memory Effects and Scaling Laws in Slowly Driven Systems