I have thought about that and you might well be right, only thing is that @getLineWeight will be called for every feature, so wanted to keep it as light as possible...