Further reduce memory usage by path traces by merging similar entries together