Cavity enhanced nonlinear optics for few photon optical bistability