improve safety of BigDecimal caches