DAR-712, cache array.length and array[i] variables