Grab the bucket contents at the beginning instead of checking multiple times