Quick memory improvement in prune