Change ById storage to return obj and not obj reference, because the reference could point to a temporary.