Nice idea, ...I've just used one of those same magnets in a plastic bag for the same purpose, ...a bit crude perhaps but still effective
I will have to keep my eyes peeled for a small plastic container (or a few) now, lol.