add ability to cache content in RAM, fix #3