Improved prp parser to use less RAM