speed up attaching setState to instance object