smaller update to previous cache file check.

make sure the whole structure is initialized when started, so that any file reading
is done on the first access. some internal name cleanup as well