Be consistent in the log messages. Prefix each one with 'Cache: '. Expand _CleanKey() and prevent directory stepping: i.e. ..