Refactory stocks and decrease the database hits.