Changed cache to use string instead of pointer as key argument.