Added caching

Added caching
Made common plugin cache and optional import
Added option to disable caching