[#11] Small optimization in getValues() method.