ah now i get it. 
yeah we can do that and this will computation redundancy. as this PR is not going to be merged very soon I have an intention to rewrite parsing code using regexp. I will try to make use of your idea then.