title: Caching YAML file
body: <p>I've been wanting to cache my YML file that I use to access messages, it is used a lot and has a lot of stuff in it, so caching would make it a lot better in terms of performance.</p>
  
  <p>I was wondering if there is a way to run through every path in the file and turn it into a HashMap, like HashMap where one String would be the path and the other the value.</p>
  
  <p>Is it possible to do it automatically or would I need to set it one by one based on my setup?</p>
  
  <p>The way I have the file is:</p>
  
  <pre><code>messages:
    test:
      test1: "message"
    test-this:
      test2: "message"
  </code></pre>