Handle snippets properly in cache