first draft of cache block
Merge pull request #378 from mikedewar/cache

first draft of cache block