perf(plugins): removes DB query to determine if a plugin is active

This also modernizes the plugin_id to object map to use a MemoryPool.

Fixes #7661
Merge pull request #7673 from mrclay/7661_active_plugins

perf(plugins): removes DB query to determine if a plugin is active