removing redundant code;
make sure the file is not added twice
do not create empty dependencies list for a CachedValue