fix issue with large ruby files loading slow