Assert record does not already exist in cache.

Assert that entry record does not already exist when caching record.

Closes #231.