Computational improvement for smooth transform (continuation)

Signed-off-by: Alkaelis <AlkaelisFenaro@gmail.com>
Merge pull request #2169 from Alkaelis/master

Computational improvement for smooth transform (continuation)