Improved the speed of in-memory by removing unnecessary transformations and sorting by default
Push in-memory to travis to see what happens