caching bar data