Solved performance issues when dealing with large number of annotations.