Use ruby 1.9.3 features to increase read/write speed