store/serialize materials

I need to store/serialize a collection of unique materials (anywhere from 1 to 100) the only solution I’ve come up with is to assign them to a dummy object within the relevant scene. Please, is there something better than that?

Thanks