REBCO based coated conductors are a viable alternative to conventional superconductors for many applications, therefore the optimization of their current carrying capacity is an ongoing process. A promising route for the increase in performance is the introduction of artificial pinning centers such as BaHfO3 nanoparticles. However, granularity still imposes a substantial performance limitation, especially in REBCO coated conductors deposited on RABiTS based templates, as the critical current density is severely reduced by moderate misalignment angles of adjacent grains. A combined study of scanning Hall probe microscopy and electron microscopy of undoped and BHO-doped YBCO films on technical templates shows that BHO-doping leads to a denser microstructure of the superconducting layer and higher global and local critical current densities. The statistical evaluation of local current maps allows for a quantification of the magnetic granularity where a reduction of granularity with increasing film thickness, doping and increasing temperature is found. In particular the dependence of granularity on the film thickness and enhanced film growth through BHO-doping shows the potential for further optimization of YBCO films on RABiTS based templates.