Make PhoenixIndexCodec thread safe