Added encryption for resources