remove some unused imports
use get instead of find for config_manager

When retrieving the config given a config ID, use get instead of find
(more efficient).
Merge branch '4821-slowness'