Memoized cache proxy

I noticed a minor issue with caching of blank values and added a couple of small optimizations.