Add comments on query cache and special case