Use Short.parseShort instead of valueOf to avoid boxing