Improve performance of filtering by name

Does this by caching the list of modules in MainModList instead of
calling the registry with each change.