Hashify data on construction of models