Improve performance for error handling unimplemented variables & methods in templates