Refactor mock logic for future abstraction
Basic implementation of the Key resource