Thread safe dynamic mapping