Bloom Filter which does not fit in RAM
A Bloom filter doesn't have "buckets".

You can make a Bloom filter of any size you want.  The smaller it is, the higher the false positive rate.

This should be covered in any good introduction to Bloom filters, of which there are many.