Fixed getting item.Template

Make data storage thread local