Avoid calls to Genotype.encode when the object is saved into Mongo