Implementing effective data management policies in distributed and grid computing environments