MemWarp: Discontinuity-Preserving Cardiac Registration with Memorized Anatomical Filters