Cache and reuse previously computed value