Using dist cache in eval UDF and few corrections