Put the plugin cache at the module level and add test for correct operation.