_load_local_module always re-executed the file as _jyotish_local_<name>, so engine, dasha, varga and others ran as extra copies with their own caches. It now reuses scripts.<name> / <name> when that file is already imported, else imports it under its plain name so later imports share it; the private copy remains only as a fallback. Call sites unchanged. Probe after one consultation and one chart: loader-made copies 19 -> 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>