We study the DC conductivity in potassium titanyl phosphate (KTiOPO4, KTP) and its isomorphs KTiOAsO4 (KTA) and Rb1%K99%TiOPO4 (RKTP) and introduce a method by which to reduce the overall ionic conductivity in KTP by a potassium nitrate treatment. Furthermore, we create so-called gray tracking in KTP and investigate the ionic conductivity in theses areas. A local unintended reduction of the ionic conductivity is observed in the gray-tracked regions, which also induce additional optical absorption in the material. We show that a thermal treatment in an oxygen-rich atmosphere removes the gray tracking and brings the ionic conductivity as well as the optical transmission back to the original level. These studies can help to choose the best material and treatment for specific applications.