Store surrogates of categories

More flexible, but drops the blazing fast CSV performance almost 3x.
(Still streams about 2MB/s on my slow machine).