Switch references to outside_cache array to call through accessor function instead.
Typo in array indexing.