refactored store.rb to correctly memoize store @h references