Share the same index and improve the locking problem for getting diagnostics