Reduce unnecessary db and access to speed up