Code to cache and manage plugin execution.