Introduced resource keys

1. Introduced resource keys in order to improve performance
   and improve flexibility