optimize(various)
diff --git a/erpnext/stock/__init__.py b/erpnext/stock/__init__.py
index 8ef1415..331472a 100644
--- a/erpnext/stock/__init__.py
+++ b/erpnext/stock/__init__.py
@@ -51,4 +51,4 @@
 	return account
 	
 def get_company_default_inventory_account(company):
-	return frappe.db.get_value('Company', company, 'default_inventory_account')
\ No newline at end of file
+	return frappe.get_cached_value('Company',  company,  'default_inventory_account')
\ No newline at end of file