Updated TagObject cache builder to solve duplicate issues.