Yes.
mysqlcheck threadsdatabase -o will optimize the tables.