NZ military kept closer ties with US secret