A strategy for the design of magnetic memories in bubble-hosting magnets