Add caching on user and bucket records; default is false

Getting user records and bucket records can be bottleneck
under a workload of single user and single bucket, as all
requests are serialized. This does not affect existing codes
without any caching. The TTL is currently 4 seconds hard
coded.