Improved efficiency by removing GetBucket, and modifying TryGet.