Cache bucketName locally.

This addresses issue #69.