I haven't even thought about using hash tables. I was trying using /loadbuf instead of a loop, but hashes work even faster. Thank you for your idea!