Made reference array as integer, timing suffers unexpectedly