Added OpenMP optimizations for the local modify filter