Disabled table optimization in rake tasks