Ruby on Rails regains lost performance