Optimizing memory management using timescale theories