Smart client side caching implementation