Store query log ID, in case of race condition