Improve snippets parser
Implement cache feature