Bug fix: transactions cache was always nil until persisting the first transaction