Where to put generic classes

I have a file that has a generic class that supports serialization to/
from files. Where should I put this class? It really does not fit
under the generic MVC directories. Thoughts?

Under the lib folder.

Or as a plugin.