On demand cache  implementation.