user16806: Sometimes we get an instant Karma. In other cases it takes time for Karmic fruits to ripen. I want to know in later case where does the Karma get stored or how is it remembered.

user471: Not everything is caused by karma. Some things are caused by other reasons, like the weather. The Sivaka Sutta talks about this. There's a summary at the bottom:

Bile, phlegm, and also wind,
Imbalance and climate too,
Carelessness and assault,
With kamma result as the eighth.

To quote the sutta in detail:

“Some feelings, Sīvaka, arise here originating from phlegm disorders …
originating from wind disorders … originating from an imbalance of the
three … produced by change of climate … produced by careless behaviour
… caused by assault … produced as the result of kamma: that some
feelings arise here produced as the result of kamma one can know for
oneself, and that is considered to be true in the world. Now when
those ascetics and brahmins hold such a doctrine and view as this,
‘Whatever a person experiences, whether it be pleasant or painful or
neither-painful-nor-pleasant, all that is caused by what was done in
the past,’ they overshoot what one knows by oneself and they
overshoot what is considered to be true in the world. Therefore I say
that this is wrong on the part of those ascetics and brahmins.”

The Acintita Sutta states that you can't work out karma and its results precisely:

"The [precise working out of the] results of kamma is an
unconjecturable that is not to be conjectured about, that would bring
madness & vexation to anyone who conjectured about it.

Karma is not like the recording of merits and sins, and the meting out of justice by a divine judge. It's cause and effect, that begins with intentions.
If you knock your head on the wall, you feel pain. This is immediate.
If you don't take care of your health, you may become ill in the long term.  This takes time.
If you allow anger, hatred, jealousy and greed to overcome your mind, this will affect your decisions and actions. If you break the law, you will get caught and punished. If you wronged others, people will remember you and react to you. They will not trust you. This also takes time.
The memory of karma is in your body, your mind, the memory and thoughts of people around you, media (books, blogs, social media, mass media etc.), genetics and also the environment.
It's everywhere.
If I take care of my health, my body "remembers" that. If I help people, people remember that. If I am a good employee, my employer will remember that. If I speak kind words and act in a trustful manner, people would trust me. If I feed and take care of a dog, it will remember that and react positively to me and may protect me. If I plant trees, it will grow taller and create shade for me.
The thing about karma is that it starts with your states of mind, and your intentions, that results in thoughts, words and actions. This then cascades into chain reactions around you. It's the Buddhist version of butterfly effect and chaos theory.
Take the benefits of metta from AN 11.16:

"Monks, for one whose awareness-release through good will is
cultivated, developed, pursued, handed the reins and taken as a basis,
given a grounding, steadied, consolidated, and well-undertaken, eleven
benefits can be expected. Which eleven?
"One sleeps easily, wakes easily, dreams no evil dreams. One is dear
to human beings, dear to non-human beings. The devas protect one.
Neither fire, poison, nor weapons can touch one. One's mind gains
concentration quickly. One's complexion is bright. One dies unconfused
and — if penetrating no higher — is headed for the Brahma worlds.

Do you think a mystical karma force will remember metta and protect the metta practitioner from fire, poison and weapons?
No. It's simply that someone who cultivates the metta state of mind, will not get into a situation that results in harm from fire, poison and weapons. He doesn't make enemies. Who would want to harm him? Also, with a well-concentrated mind, he would avoid accidents.

user-1: If you throw a rock at a window, there is the expectation of it hitting the window. Where is this expectation stored?
Likewise with all intention, intending one acts, throwing a rock is an action which begets results. Where are the expected results stored?
If you analyzed the properties of the rock mid flight along with all of the relevant circumstances in the entire world, you could for sure deduct it's trajectory and arrive at it eventually hitting the window.
So the information about the world [incl the result of actions] is the world and is in the world and nowhere else.
In the Dhamma that which perceives & conceives the world is called the world.
If you conceive & perceive someone throwing a rock at a window, you quickly deduct the consequences in as far as you understand the circumstances which the senses present and the more you know the more you can deduct about the outcomes.
If you knew everything about everything you could know everything that is going to happen as a result of a particular action but this is impossible because samsara is beginningless.

16806: <p>Sometimes we get an instant Karma. In other cases it takes time for Karmic fruits to ripen. I want to know in later case where does the Karma get stored or how is it remembered.</p>
 471: <p>Not everything is caused by karma. Some things are caused by other reasons, like the weather. The <a href="https://suttacentral.net/sn36.21/en/bodhi" rel="nofollow noreferrer">Sivaka Sutta</a> talks about this. There's a summary at the bottom:</p>
<blockquote>
<p>Bile, phlegm, and also wind,<br />
Imbalance and climate too,<br />
Carelessness and assault,<br />
With kamma result as the eighth.</p>
</blockquote>
<p>To quote the sutta in detail:</p>
<blockquote>
<p>“Some feelings, Sīvaka, arise here originating from phlegm disorders …
originating from wind disorders … originating from an imbalance of the
three … produced by change of climate … produced by careless behaviour
… caused by assault … produced as the result of kamma: that some
feelings arise here produced as the result of kamma one can know for
oneself, and that is considered to be true in the world. Now when
those ascetics and brahmins hold such a doctrine and view as this,
‘Whatever a person experiences, whether it be pleasant or painful or
neither-painful-nor-pleasant, <strong>all that is caused by what was done in
the past</strong>,’ they overshoot what one knows by oneself and they
overshoot what is considered to be true in the world. Therefore I say
that <strong>this is wrong</strong> on the part of those ascetics and brahmins.”</p>
</blockquote>
<p>The <a href="https://www.accesstoinsight.org/tipitaka/an/an04/an04.077.than.html" rel="nofollow noreferrer">Acintita Sutta</a> states that you can't work out karma and its results precisely:</p>
<blockquote>
<p>&quot;The [precise working out of the] results of kamma is an
unconjecturable that is not to be conjectured about, that would bring
madness &amp; vexation to anyone who conjectured about it.</p>
</blockquote>
<p>Karma is not like the recording of merits and sins, and the meting out of justice by a divine judge. It's cause and effect, that begins with intentions.</p>
<p>If you knock your head on the wall, you feel pain. This is immediate.</p>
<p>If you don't take care of your health, you may become ill in the long term.  This takes time.</p>
<p>If you allow anger, hatred, jealousy and greed to overcome your mind, this will affect your decisions and actions. If you break the law, you will get caught and punished. If you wronged others, people will remember you and react to you. They will not trust you. This also takes time.</p>
<p>The memory of karma is in your body, your mind, the memory and thoughts of people around you, media (books, blogs, social media, mass media etc.), genetics and also the environment.</p>
<p>It's everywhere.</p>
<p>If I take care of my health, my body &quot;remembers&quot; that. If I help people, people remember that. If I am a good employee, my employer will remember that. If I speak kind words and act in a trustful manner, people would trust me. If I feed and take care of a dog, it will remember that and react positively to me and may protect me. If I plant trees, it will grow taller and create shade for me.</p>
<p>The thing about karma is that it starts with your states of mind, and your intentions, that results in thoughts, words and actions. This then cascades into chain reactions around you. It's the Buddhist version of <a href="https://en.wikipedia.org/wiki/Butterfly_effect" rel="nofollow noreferrer">butterfly effect</a> and <a href="https://en.wikipedia.org/wiki/Chaos_theory" rel="nofollow noreferrer">chaos theory</a>.</p>
<p>Take the benefits of metta from <a href="https://www.accesstoinsight.org/tipitaka/an/an11/an11.016.than.html" rel="nofollow noreferrer">AN 11.16</a>:</p>
<blockquote>
<p>&quot;Monks, for one whose awareness-release through good will is
cultivated, developed, pursued, handed the reins and taken as a basis,
given a grounding, steadied, consolidated, and well-undertaken, eleven
benefits can be expected. Which eleven?</p>
<p>&quot;One sleeps easily, wakes easily, dreams no evil dreams. One is dear
to human beings, dear to non-human beings. The devas protect one.
<strong>Neither fire, poison, nor weapons can touch one.</strong> One's mind gains
concentration quickly. One's complexion is bright. One dies unconfused
and — if penetrating no higher — is headed for the Brahma worlds.</p>
</blockquote>
<p>Do you think a mystical karma force will remember metta and protect the metta practitioner from fire, poison and weapons?</p>
<p>No. It's simply that someone who cultivates the metta state of mind, will not get into a situation that results in harm from fire, poison and weapons. He doesn't make enemies. Who would want to harm him? Also, with a well-concentrated mind, he would avoid accidents.</p>
 -1: <p>If you throw a rock at a window, there is the expectation of it hitting the window. Where is this expectation stored?</p>
<p>Likewise with all intention, intending one acts, throwing a rock is an action which begets results. Where are the expected results stored?</p>
<p>If you analyzed the properties of the rock mid flight along with all of the relevant circumstances in the entire world, you could for sure deduct it's trajectory and arrive at it eventually hitting the window.</p>
<p>So the information about the world [incl the result of actions] is the world and is in the world and nowhere else.</p>
<p>In the Dhamma that which perceives &amp; conceives the world is called the world.</p>
<p>If you conceive &amp; perceive someone throwing a rock at a window, you quickly deduct the consequences in as far as you understand the circumstances which the senses present and the more you know the more you can deduct about the outcomes.</p>
<p>If you knew everything about everything you could know everything that is going to happen as a result of a particular action but this is impossible because samsara is beginningless.</p>
