db/data struct performance tuning