Improve cat performance
Merge pull request #189 from mahkoh/cat

Improve cat performance