Reduce array indexing for some speed-up.