Remove uid and training pool attributes since there is no apparent use and the logic is bad
Fixed defect in build_cache