IndexCache: use key variables instead of inline strings

Avoid inline strings and manual spacing - use already-declared key variables
and unwords