smarter checkpoint thread handling