speed up rake task for creating record history