Store a hashable object using Promises