Custom skills (your agent can write one itself the first time) should solve this. Procedural memory!