copy keys as well as values when store by value is enabled