Method to collect all keys in a bucket