Memory-based SO(3) Representations for Impedance Control