Analytics optimization