The Wikipedia page for heroin has this to say:
Why is heat required in the former case? Could a user without a heat source just patiently wait a little longer, or is heat an absolutely necessary condition for dissolution? If heat is necessary, why does it stay dissolved even after cooling?