small optimisations
optimise build_set
Cache group subjects
tags filtered by type