Optimizations - removed some redundant array packing and unpacking. Also replaced some array copying with indices into arrays.
Setup more lazy loading in the test class "TestOF"