lib: make templates non-shareable