Refactor Citybikes sample and improve caching.