Trying to improve IV performance. Take 1

Caching.