Chiral memory: Induction, amplification, and switching in porphyrin assemblies