[FIX] schema thread locals usage