Add mask support to LZ matches - seems to fix performance issues