Performance improvement for detecting Void returned for value()