Small optimization

`method` extracted from `data` at 357 does not change over function
Merge pull request #393 from KODerFunk/patch-1

Small optimization