On the locus of Hodge classes