Better lazy promise implementation.