speed up pattern loading with pre-hashed patterns