Streamline API for replacing keys