trim.pbs: Variable RAM for large datasets