Fix issue with alignment in cache key.

Make cache incorporate buffer bounds in hit test.