Some small array optimizations