Java Thread Safe Static Variable Margin Pricing