optimizations to file / folder lookup