Parsing all data and doing calculations at once instead of repeating them.