FlatData encoder