Memory effects and homogenization