[#2963] Remove n+1 when loading tag's packages