Localized histogram only computation to main thread