CLDIDE-2102: do index initialization in thread that access it first time