Using one byte less of memory in a for loop of Spark::function