Why not just use an array of 2^32 bits -- a half gigabyte -- and leave off hashing altogether?
All it would cost is the excess runtime, which we should not mind giving up unless we smoke.
If necessary, you could have two or more. 256 of them would fit in 128G, which lots of servers have without even needing it all.