Optimal Data Representation