Novel design of a smart magnet/superconductor heterostructure