Add caching capability

Hey,

I personally forget something occasionally, so I have to search for a duplicate thing sometimes, thus caching is always useful for me and hope it's useful for you too.