FieldConstructor to serialize fields, middleware to encrypt