Improve performance of moduleSetTag lookup