Use lookup instead of std::map for managed objects