Little OSX optimizations