Prevent retrieving remote hostname when not needed