re-work how texture index is managed for performance improvements