Adding a caching system

Here my suggestion of a caching system in order to avoid the 15 seconds search (I have the CLI in mind, already developed, not PR yet because need some more tests)

The path name of the config file might need some refactoring (the Dir.home in a global config variable was not executed)

What do you think ?