Add block caching to improve panning speed.