Caching for plugins. Closes #2