Make CheckPlus code thread-safe