optimize sharpen filter