Optimized Scalaskel.