Rails GC optimization