Text this: Nonlinear optical response of thermally stable perovskite for near-infrared optical modulator