Avoid some array accesses. 5% of CPU time was wasted there.