Optimization load data from db