Add common formula cache (fixes #3)