Optical clarity and waveguide performance of thin film perovskites on MgO