Implement caching for hi2-show-indentations mode