Trying to improve performance using index