use Row to infer schema
improve cache of classes