In several houses, the routine followed is to procure tamarind in large quantities and use a small portion daily. There is a method to preserve tamarind for longer durations in good condition.
Keep the tamarind in the earthen pot. Then spray some salt on the surface and keep. This would keep the tamarind in good condition for long periods and also prevent it from drying up.