Speed up by just producing True False values instead of all possible lists