Faster way without locks to increment queries counter

See #13