tweaking on sinatra performance