optimizations

settings file and keeping previously found paths in memory