Improve performance of ctrl-p in large projects