optimize the check table activity