Read matchfile into a set instead of a list for better lookup performance.