Save some time by not calculating data index every block