Text this: Photorefractive and pyroelectric photonic memory and long-term stability in thin-film lithium niobate microresonators