Improve performance of inverse DWT 5x3 (#953)