Better storage of resources to ES