Processing of global and local information in memory