Improved terms lookup cache section