Removed unused variable
Removed unused variable
Added a log message in case of present invaid files
The cache is no longer blindly trusted, files are validated also when retrieved from local cache
Wrong return statement removed.